import require from "@/utils/require";

// 登录接口
export function login_api(data: any) {
  return require({
    url: "/login",
    method: "post",
    data: data,
  });
}
// 注册接口
export function register_api(data: any) {
  return require({
    url: "/register",
    method: "post",
    data: data,
  });
}

// 编辑接口
export function update_user(data: any) {
  return require({
    url: "/api/updateUser",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
